package com.cloudpark.rabbitmq;

import org.springframework.amqp.core.Message;
import org.springframework.amqp.core.MessageListener;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

public class MessageReceiver implements MessageListener {

    @Override
    public void onMessage(Message message) {
        System.out.println("receive message from bamboohat : " + message);
    }

    public static void main(String[] args) {
        ApplicationContext context = new FileSystemXmlApplicationContext("classpath:applicationContext.xml");
    }

}
